<?php
/* @var $this ProdukController */
/* @var $model Produk */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'produk-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'KODE_PRODUK'); ?>
		<?php echo $form->textField($model,'KODE_PRODUK',array('size'=>8,'maxlength'=>8, 'class'=>'small')); ?>
		<?php echo $form->error($model,'KODE_PRODUK'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ID_KATEGORI'); ?>
		<?php echo $form->textField($model,'ID_KATEGORI',array('size'=>20,'maxlength'=>20, 'class'=>'small')); ?>
		<?php echo $form->error($model,'ID_KATEGORI'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'KODE_TOKO'); ?>
		<?php echo $form->textField($model,'KODE_TOKO'); ?>
		<?php echo $form->error($model,'KODE_TOKO'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'NAMA_PRODUK'); ?>
		<?php echo $form->textField($model,'NAMA_PRODUK',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'NAMA_PRODUK'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'HARGA'); ?>
		<?php echo $form->textField($model,'HARGA'); ?>
		<?php echo $form->error($model,'HARGA'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'DESKRIPSI'); ?>
		<?php echo $form->textField($model,'DESKRIPSI',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'DESKRIPSI'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'GAMBAR_PRODUK'); ?>
		<?php echo $form->textField($model,'GAMBAR_PRODUK'); ?>
		<?php echo $form->error($model,'GAMBAR_PRODUK'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'SIZE'); ?>
		<?php echo $form->textField($model,'SIZE',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'SIZE'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->